<template>
    <el-container>
      <el-header><HeaderCom/></el-header>
      <el-container>
        <el-aside width="17vw"><navMenuVue v-if="store.identity == 0"/><UserNavMenuVue v-if="store.identity == 1"/></el-aside>
        <el-main><RouterView/></el-main>
      </el-container>
    </el-container>
</template>

<script setup lang="ts">
import { usestore } from '../store';
import navMenuVue from 'comp/AdminNavMenu.vue';
import HeaderCom from 'comp/HeaderCom.vue';
import UserNavMenuVue from 'comp/UserNavMenu.vue';

const store = usestore()


</script>

<style scoped>

 .el-header {
    background-color: #fff;
    color: #333;
    line-height: 50px;
  }

  .el-aside {
    background-color: #272727;
    color: #333;
  }

  .el-main {
    background-color: #e9edf0;
    color: #333;
  }

  body > .el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }

</style>